Enterprise Objects Framework Release 1.1 Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

NXEditableFormatter

Inherits From:	NXFormatter : Object

Declared In:	eointerface/NXEditableFormatter.h

Class Description

An NXTableView uses NXEditableFormatter object for the display and editing of textual data in an NXTableView. For faster, read-only display of text, use NXTextFormatter. To display images in an NXTableView, use NXImageFormatter.

Instance Variables

id font;

id editView;

id drawCell;

font	The font used to display text.

editView	The view being edited (a private object owned by an NXTableView).

drawCell	The TextFieldCell being edited or drawn.

Method Types

Initializing and freeing	- init
- free

Accessing the font	- setFont:

- font

Setting the delegate	- setDelegate:

Displaying and editing	- drawFieldAt::inside:inView:withAttributes::
usePositions::
- editFieldAt::inside:inView:withAttributes::
usePositions::onEvent:
- endEditing
- abortEditing

Archiving	- read:

- write:

Instance Methods

abortEditing

- abortEditing

Forces an end to editing, discarding any changes the user may have made. Returns self.

See also:  - endEditing

drawFieldAt::inside:inView:withAttributes::usePositions::

- drawFieldAt:(unsigned int)rowIndex
:(unsigned int)columnIndex
inside:(NXRect *)frameRect 
inView:aView
withAttributes:(id <NXTableVectors>)rowAttributes 
:(id <NXTableVectors>)columnAttributes
usePositions:(BOOL)rowPosFlag
:(BOOL)columnPosFlag

Draws one field of text, as described in the NXFormatter class specification. You never invoke this method directly; it's invoked automatically by the NXTableView when a field needs to be displayed.

Note:  aView isn't an NXTableView, but a private view used by the NXTableView.

See also:  - editFieldAt::inside:inView:withAttributes::usePositions::onEvent:

editFieldAt::inside:inView:withAttributes::usePositions::onEvent:

- (BOOL)editFieldAt:(unsigned int)rowIndex
:(unsigned int)columnIndex
inside:(NXRect *)frameRect
inView:aView
withAttributes:(id <NXTableVectors>)rowAttributes
:(id <NXTableVectors>)columnAttributes
usePositions:(BOOL)rowPosFlag
:(BOOL)columnPosFlag
onEvent:(NXEvent *)theEvent

Begins an editing session for the field of aView identified by rowIndex and columnIndex. You never invoke this method directly; it's invoked automatically by the NXTableView when a field needs to be edited. When editing ends this method sends formatterDidEndEditing:endChar: to aView (this method is described in the NXFormatterEditing protocol specification).

Returns YES if the field is successfully edited, NO otherwise (for example, if aView can't be made the first responder).

Note:  aView isn't an NXTableView, but a private view used by the NXTableView.

See also:  - endEditing, - abortEditing, - drawFieldAt::inside:inView:withAttributes::usePositions::

endEditing

- (BOOL)endEditing

Finishes editing in the field indicated by an editFieldAt::... message, typically when the user presses Return or Tab or clicks in another field (thereby indicating that editing in the receiver is complete). Returns YES if successful, NO otherwise.

See also:  - abortEditing

font

- font

Returns the Font object used for drawing text.

free

- free

Releases the storage for the NXEditableFormatter and returns nil.

init

- init

Initializes a newly allocated NXEditableFormatter, setting the font to the user's default font at a size of 12 points. This is the designated initializer for the NXEditableFormatter class. Returns self.

read:

- read:(NXTypedStream *)stream

Reads the NXEditableFormatter from the typed stream stream. Returns self.

setFont:

- setFont:aFont

Sets the NXEditableFormatter's font to the Font object aFont. Returns self.

setDelegate:

- setDelegate:anObject

Sets the NXEditableFormatter's delegate to anObject, caching information on the messages it responds to. The delegate messages for formatters are described in the NXFormatterValidation informal protocol specification. Returns self.

See also:  - delegate (NXFormatter)

write:

- write:(NXTypedStream *)stream

Writes the NXTextFormatter to the typed stream stream.